package com.ruoyi.function.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class EncryptResource {
    private Amount amount;

    @JsonProperty("out_refund_no")
    private String outRefundNo;

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("refund_id")
    private String refundId;

    @JsonProperty("refund_status")
    private String refundStatus;

    @JsonProperty("success_time")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssXXX", timezone = "GMT+8")
    private LocalDateTime successTime;

    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonProperty("user_received_account")
    private String userReceivedAccount;

    @JsonProperty("promotion_detail")
    private List<Object> promotionDetail; // 根据实际数据结构定义具体类型
}
